<template>
  <div>
    <CompA/>
    <CompB/>
  </div>
</template>

<script>
  import CompA from './CompA.vue'
  import CompB from './CompB.vue'
  import axios from 'axios'
  import {testSmart} from '../../api/goods'
  export default {
    components: {
      CompA,
      CompB
    },
    created () {
      // 方法1:
      // axios.get('/smart/product/home')
      // .then(res=>{
      //   console.log(res);
      // })
      // 方法2:
      testSmart().then(res=>{
        console.log(res);
      })
    },
  }
</script>

<style lang="scss" scoped>

</style>